package org.springblade.modules.repair.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description 电梯停梯状态
 * @Author ysq
 * @Date 2021/10/23
 **/
@Getter
@AllArgsConstructor
public enum ElevatorUseTypeEnum {

	ANNUAL_VERIFICATION(0,"年审"),

	NOT_ANNUAL_VERIFICATION(1,"非年审");

	final int status;

	final String name;

	public static String getName(int status){
		ElevatorUseTypeEnum[] values = ElevatorUseTypeEnum.values();
		for (ElevatorUseTypeEnum enumValue:values) {
			if(enumValue.getStatus()==status){
				return enumValue.getName();
			}
		}
		return null;
	}
}
